﻿namespace StudentProject
{
    using System;
    using System.Collections.Generic;

    public class Student
    {
        public string FirstName { get; set; }

        public string LastName { get; set; }

        public int FN { get; set; }

        public string Tel { get; set; }

        public string Email { get; set; }

        public List<int> Marks { get; set; }

        public Group Group { get; set; }
        
        public override string ToString()
        {
            return
                this.FN + Environment.NewLine +
                this.FirstName + Environment.NewLine +
                this.LastName + Environment.NewLine +
                this.Email + Environment.NewLine +
                this.Tel + Environment.NewLine +
                this.Group.GroupNumber + Environment.NewLine +
                string.Join(",", this.Marks) + Environment.NewLine + 
                new string('-', 20);
        }
    }
}